import request from '@/router/axios';

/**
 * 政策解读信息表列表数据
 *
 */
export const getList = (current, size, params) => {
  return request({
    url: '/policy/analysis/page',
    method: 'POST',
    params: {
      ...params,
      current,
      size,
    }
  })
}

/**
 * 政策解读撤回
 * @param row
 */
export const back = (row) => {
  return request({
    url: '/policy/analysis/back',
    method: 'post',
    data: row
  })
}

/**
 * 政策解读删除
 * @param row
 */
export const remove = (row) => {
  return request({
    url: '/policy/analysis/remove',
    method: 'post',
    data: row
  })
}

/**
 * 政策主题详情
 * @param row
 */
export const detail = (row) => {
  return request({
    url: '/policy/analysis/detail',
    method: 'post',
    data: row
  })
}

/**
 * 获取政策列表
 * @param id
 */
export const getSelectList =  (current, size, params) => {
  return request({
    url: '/policy/info/page',
    method: 'POST',
    params: {
      ...params,
      current,
      size,
    }
  })
}

/**
 * 保存|暂不处理
 * @param row
 */
export const save = (row) => {
  return request({
    url: '/policy/analysis/save',
    method: 'post',
    data: row
  })
}

/**
 * 审核并发布
 * @param row
 */
export const confirm = (row) => {
  return request({
    url: '/policy/analysis/confirm',
    method: 'post',
    data: row
  })
}